import request from '@/utils/request'

let loginApi = {
    /**
     * @description 登录页
     * @returns
     */
    base(data, errorback) { 
        return request._postBody('/service/index/base', data, errorback);
    },
    /**
     * @description 登录
     * @returns
     */
    login(data, errorback) {
      return request._post('/service/passport/login', data, errorback);
    },
    /**
     * @description 登出
     * @returns
     */
    logout(data, errorback) {
        return request._postBody('/service/passport/logout', data, errorback);
    },
}

export default loginApi;
